﻿using SqlSugar;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace XinLife.Model
{

    /// <summary>
    /// 地址表
    /// </summary>
    [Table("tb_address")]
    [SugarTable("tb_address")]
    public class Address
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [Key]
        [SugarColumn(IsPrimaryKey = true)]
        public int cId { get; set; }
        /// <summary>
        /// 父Id
        /// </summary>
        public int cPId { get; set; }
        /// <summary>
        /// 地址名 
        /// </summary>
        public string cName { get; set; }
        /// <summary>
        /// 等级 0 中国 1 省份 2 市 3 区
        /// </summary>
        public int cGrade { get; set; }
    }
}
